<!--10-replaceWith和replaceAll.html-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>replaceWith和replaceAll</title>
    <script type="text/javascript" src="jquery-1.7.2.js"></script>
    <script type="text/javascript">
        $(function () {
            $("p").replaceWith("<p>ylaihui</p>")
            $("<h1>ylaihui</h1>").replaceAll("div");
        })
    </script>
</head>
<body>
    <p>y</p>
    <p>lai</p>
    <p>hui</p>
    <div>ylaihui</div>
</body>
</html>